(function() {
  var __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

  this.RatingModel = (function(_super) {

    __extends(RatingModel, _super);

    function RatingModel() {
      return RatingModel.__super__.constructor.apply(this, arguments);
    }

    RatingModel.prototype.defaults = {
      BookId: 0,
      Rating: 0
    };

    RatingModel.prototype.url = function() {
      var url;
      return url = SiteMap.Rating.Rate + "?bookId=" + this.attributes.BookId + "&ratingValue=" + this.attributes.RatingValue;
    };

    RatingModel.prototype.parse = function(response) {
      return {
        Rating: response.Rating
      };
    };

    return RatingModel;

  })(Backbone.Model);

}).call(this);
